package com.highcom.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName("user")  //指定表名， 如果表名和类名一致，可以省略
public class User {
    //一般来讲实体类中所有的属性在数据库中都有

    @TableField(exist = false)  //当前属性 表中不存在
    private String username;
    @TableField(exist = false)  //当前属性 表中不存在
    private String password;



/*
id
name
age
email

 */
    private Long id;
    private String  name;
    private Integer age;
    private String email;

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
